<?php

use Phinx\Migration\AbstractMigration;

class AddTelephoneNumberColumnInTenantAuthenticationTable extends AbstractMigration
{

    public function up()
    {
        $this->table("tenant_authentication")
            ->addColumn("telephone_number", 'string', [
                'limit' => "25",
                'comment' => "公司座机号码",
                'null' => false,
                'default' => "",
            ])
            ->save();
    }

    public function down()
    {
        $this->table("tenant_authentication")
            ->removeColumn("telephone_number")
            ->save();
    }
}
